package com.gab.utils;

import java.io.Serializable;
import java.util.List;

public class PageResult implements Serializable{

	private Long total;
	
	private List rows;

	//创建全参构造,创建 对象时必须传入两个参数
	public PageResult(Long total, List rows) {
		super();
		this.total = total;
		this.rows = rows;
	}

	public Long getTotal() {
		return total;
	}

	public void setTotal(Long total) {
		this.total = total;
	}

	public List getRows() {
		return rows;
	}

	public void setRows(List rows) {
		this.rows = rows;
	}

	@Override
	public String toString() {
		return "PageResult [total=" + total + ", rows=" + rows + "]";
	}
	
	
}
